package com.example.nettyclient.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author PC
 */
public class CusNettyChatHandle extends SimpleChannelInboundHandler<String> {

    private final static Logger logger = LoggerFactory.getLogger(CusNettyChatHandle.class);
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) {
        logger.info(msg);
    }
}
